package cn.DesignModel.observer02;

/**
 * @author: lizemin
 * @version: 1.0
 */
public class WeiBoUser implements Observer {
//  微博用户名
    private String name;
    public WeiBoUser(String name) {
        this.name = name;
    }

    @Override
    public void update(String message) {
        System.out.println(name + "-" + message);
    }

}
